IE ie = new IE();
ie.start('http://localhost:8075/horario/login.html')

if (new String(ie.title().getBytes()).contains('Entrar | Horário')) {
    ie.textField(SymbolFactory.@name, "username").set("admin")
    ie.textField(SymbolFactory.@name, "password").set("admin")
    ie.button(SymbolFactory.@name, "login").click()
}

//Vamos para Novo Horário
assert ie.link(SymbolFactory.text, "Horário").exists()
ie.link(SymbolFactory.text, "Horário").click()

//ie.close()